{% load i18n %}
{% load static %}
<html>
    <head>
		<link href="{% static 'css/bootstrap-fluid-adj.css' %}" rel="stylesheet">
		<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet" media="screen">
		<link href="{% static 'css/bootstrap-responsive.css' %}" rel="stylesheet">
	
        <title>{% trans "Register in Project Manager" %}</title>
    </head>

    <body>
		<div class="hero-unit">
			<h1>{% trans "Register here!" %}</h1>
			<br />
			<div class="container">
			<form class="form-signin span8" id="user_form" method="post" action="/register/"
				  enctype="multipart/form-data">
				{% csrf_token %}
				<h2 class="form-signin-heading">{% trans "Sign up Here" %}</h2>

				{% for field in user_form.visible_fields %}
				<div>
					<div>
						{{ field.help_text }}<br />
						{{ field }}<br />
					</div>
					<div>
						{% if field.errors %}
							<div class="text text-error">{{ field.errors }}</div>
						{% endif %}
					</div>
				</div>
				{% endfor %}

				{% for field in profile_form.visible_fields %}
				<div>
					<div>
						{{ field.help_text }}<br />
						{{ field }}<br />
					</div>
					<div>
						{% if field.errors %}
							<div class="text text-error">{{ field.errors }}</div>
						{% endif %}
					</div>
				</div>
				{% endfor %}

				<br />
				<input class="btn btn-primary row" type="submit" name="submit" value={% trans "Register" %}>
			</form>
			</div>
			{% if messages %}
				{% for message in messages %}
					<p {% if message.tags %} class="alert alert-{{message.tags}}"{% endif %}>{{ message }}</p>
				{% endfor %}
			{% endif %}
		</div>
    </body>
</html>